#ifndef UNDOABLE_H
#define UNDOABLE_H

#include "MacroDef.h"
#include "Command.h"

class Undoable : public Command
{
private:
	static Undoable* undoableCmd[UNDO_NUM];
	static int count;
public:
	Undoable();
	static Undoable* getLastCmd();
	virtual void process(Uint8* keys) = 0;
	virtual void undo() = 0;
};

#endif